/*
 * File:     wiideviceconnector.h
 * Authors:  Dominic Stalder, Thomas Bruederli
 *
 * QThread to control the wii device initialization (one after the other)
 *
 * This file is part of the Qt-based cross-platform Wii device driver.
 *
 * Copyright (C) 2009-2010, Dominic Stalder & Thomas Bruederli
 * Licensed under the GNU Lesser General Public License (LGPL) as published
 * by the Free Software Foundation at http://www.gnu.org/licenses/lgpl-3.0.txt
 *
 * $Id: wiideviceconnector.h 2 2010-02-15 12:48:56Z roundcube $
 */

#ifndef WIIDEVICECONNECTOR_H
#define WIIDEVICECONNECTOR_H

#include <QThread>
#include "wiidevicedriver.h"

/**
 * Class declaration for the driver initialization thread
 */
class WiiDeviceConnector : public QThread
{
	Q_OBJECT
		
private:
	WiiDeviceDriver *wiiboard, *wiicontroller;
	int running;
		
public:
	WiiDeviceConnector(WiiDeviceDriver *board, WiiDeviceDriver *controller)
		: wiiboard(board), wiicontroller(controller), running(1) { };
	void stop(void);
		
protected:
	void run();
};

#endif
